import { http } from '@/utils/http/axios';

export function getCommentPage(params) {
  return http.request({
    url: '/comment/page',
    method: 'get',
    params,
  });
}

export function deleteComment(id) {
  return http.request({
    url: `/comment/${id}`,
    method: 'DELETE',
  });
}

export function getSearchCommentPage(params) {
  return http.request({
    url: '/comment/search',
    method: 'get',
    params,
  });
}
